package com.stationbuilding.fragment.safe;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.stationbuilding.R;
import com.stationbuilding.TestData;
import com.stationbuilding.adapter.safe.FlowListAdapter;

public class FlowFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_safe_flow, container, false);
        ListView listView = (ListView) view.findViewById(R.id.flow_list);
        FlowListAdapter flowListAdapter = new FlowListAdapter(getActivity(), TestData.getTaskData());
        listView.setAdapter(flowListAdapter);
        return view;
    }
}
